<template>
	<view class="no-data">
		<image :src="imgObj[type]"></image>
	</view>
</template>

<script setup>
	import config from '@/js/config.js';

	const props = defineProps({
		type: String
	});

	const imgObj = {
		1: `${config.imgPath}/no-data.png`,
		2: `${config.imgPath}/infoSquare/no-answer.png`,
		3: `${config.imgPath}/no-msg.png`
	}
</script>

<style lang="less" scoped>
	.no-data {
		padding: 140rpx 0;
		text-align: center;
		background: #fff;

		image {
			width: 480rpx;
			height: 480rpx;
		}
	}
</style>